
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 UmsRolePermission 分页列表
*/
export function getUmsRolePermissionPagination(data: any) {
  return axios.get(`${context}/umsRolePermission/pagination`, { params: data });
}


/**
 * 获取 UmsRolePermission 所有数据
*/
export function getUmsRolePermissionAllList(data: any) {
  return axios.get(`${context}/umsRolePermission/all`, { params: data });
}


/**
 * 获取 UmsRolePermission 详情
*/
export function getUmsRolePermissionDetailById(id: any) {
  return axios.get(`${context}/umsRolePermission/${id}`, { params:{id} });
}


/**
 * 新增 UmsRolePermission
*/
export function addUmsRolePermission(data: any) {
  return axios.post(`${context}/umsRolePermission`, data);
}

/**
 * 修改 UmsRolePermission
*/
export function updateUmsRolePermission(data: any) {
  return axios.put(`${context}/umsRolePermission`, data);
}

/**
 * 删除 UmsRolePermission
*/
export function batchRemoveUmsRolePermission(data: any) {
  return axios.post(`${context}/umsRolePermission/batchRemove`, data);
}

    